package com.aaa.observermode;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2022/11/9
 */
public class Test {
    public static void main(String[] args) {
        AAAPublic aaaPublic = new AAAPublic();
        User user1 = new User("张三");
        User user2 = new User("李四");
        User user3 = new User("王五");
        User user4 = new User("赵六");
        aaaPublic.guanzhu(user1);
        aaaPublic.guanzhu(user2);
        aaaPublic.guanzhu(user3);
        aaaPublic.guanzhu(user4);
        aaaPublic.guanzhu(new Teacher());

        aaaPublic.setMsg("今天星期日");
//        aaaPublic.qunfa();

        aaaPublic.quxiao(user1);
        aaaPublic.qunfa();
    }
}
